﻿using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;

namespace JustinAngel.MindwaveSensor.WP8.Controls
{
    /// <summary>
    /// Displays the current state of Mindwave sensor. 
    /// </summary>
    public class MindwaveConnectionIndicator : MindwaveControl
    {
        public MindwaveConnectionIndicator()
        {
            this.DefaultStyleKey = typeof(MindwaveConnectionIndicator);
        }

        protected override void UpdateVisualState()
        {
            VisualStateManager.GoToState(this, MindwaveSensor.State.ToString(), false); 
        }
    }
}
